// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MAINFRM_H__34BE06CC_91A0_4E4E_94CE_88DBDB0FCCA8__INCLUDED_)
#define AFX_MAINFRM_H__34BE06CC_91A0_4E4E_94CE_88DBDB0FCCA8__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "global.h"
#include "usuario.h"
#include "isis.h"
#include "isismarcview.h"
#include "idiomas.h"
#include "menu.h"
#include "Busqueda.h"


class CMainFrame : public CMDIFrameWnd
{
	DECLARE_DYNAMIC(CMainFrame)
public:
	CMainFrame();
// Attributes
	CUsuario usuar;
	CString usuario;
	CMyIsis mi_clip;
	CStatusBar mi_Estado;
	int leader_clip;
	CIsismarcView * view;
	CArray <CBusqueda , CBusqueda&> g_ListaBusquedas;

	//Info del thread
	CWinThread* m_YazThread;
	UINT indicadores[2];
	
public:
// Operations
	bool LeerCip();
	bool LeerPar(CString base);
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMainFrame)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	//}}AFX_VIRTUAL

// Implementation
public:
	//void CALLBACK EXPORT ActualizarStatus(HWND, UINT, UINT, DWORD);
	long m_tiempo;
	CString estadoanterior;
	CString mi_EstadoTexto;
	long CantidadBusquedas();
	void ResetBusquedas();
	long m_indice;
	void PushOnBusquedas(CBusqueda);
	CBusqueda PopOnBusqueda();
	virtual ~CMainFrame();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:  // control bar embedded members
	CString m_nLeyenda;
	CStatusBar  m_wndStatusBar;
	CToolBar    m_wndToolBar;

// Generated message map functions
protected:
	//{{AFX_MSG(CMainFrame)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnWindowArrange();
	afx_msg void OnWindowCascade();
	afx_msg void OnWindowTileHorz();
	afx_msg void OnWindowTileVert();
	afx_msg void OnClose();
	afx_msg void OnDestroy();	
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MAINFRM_H__34BE06CC_91A0_4E4E_94CE_88DBDB0FCCA8__INCLUDED_)
